package com.wkbb.common.enums;

/**
 * 组织类型枚举
 *
 * @author Lilin
 */
public enum CompanyTypeEnum {

    /**
     * 微看
     */
    WK(1, "微看"),
    /**
     * 代理商
     */
    AGENT(2, "代理商"),
    /**
     * 教育机关
     */
    EDUCATION (3, "机关"),
    /**
     * 集团
     */
    CONGLOMERATE(4, "集团");

    private CompanyTypeEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private Integer value;

    private String desc;

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public static String getDesc(Integer value) {
        for (CompanyTypeEnum organizationType : CompanyTypeEnum.values()) {
            if (organizationType.getValue().intValue() == value) {
                return organizationType.getDesc();
            }
        }
        return null;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

}
